package com.yc.c118s3plyqnzf.service;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class BizException extends Exception{

    // 在抛出异常的同时，添加错误对象
    private Object data;

    public BizException(String msg){
        super(msg);
    }

    public BizException(String msg, Object data){
        super(msg);
        this.data = data;
    }
}
